package com.lms.logisticsmanagementsystem.mapper;

import com.lms.logisticsmanagementsystem.model.Order;
import com.lms.logisticsmanagementsystem.model.PS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface OrderMapper {
    List<Order> getOrderInfo();

    Integer addOrderInfo(Order order);

    Order getOrderInfoById(Integer id);

    Integer updateOrderInfoById(Order order);

    Integer generateOrder(Integer id);

    Integer addPSInfo(PS ps);

    Integer delOrderInfoById(@Param("id") Integer oid);

    List<PS> getPSInfo();

    Integer updatePSInfoStatusByPSBH(@Param("psbh") String psbh, @Param("shtime") String shtime);

    Integer delPSInfoByPSBH(@Param("psbh") String psbh);

    List<PS> getPSInfoByPSTip(@Param("pstip") String pstip);

    List<Order> getOrderInfoByOTip(@Param("otip") String otip);
}
